import { requestPort } from '@/utils/request.js';

//请求积分商城商品列表
export function getShopList(params) {
  return requestPort({
    url: '/api/shop/shop_list',
    method: 'POST',
    params: params
  });
}


// 获取积分商城任务分类
export function getTaskCate(params) {
  return requestPort({
    url: '/api/shop/get_taskcate',
    method: 'POST',
    params: params
  });
}

// 获取签到列表
export function getSignList(params) {
  return requestPort({
    url: '/api/User/new_signlist',
    method: 'POST',
    params: params
  });
}

// 添加签到动作
export function addSign(params) {
  return requestPort({
    url: '/api/User/new_sign',
    method: 'POST',
    params: params
  });
}

// 获取积分商城任务列表
export function getTaskList(params) {
  return requestPort({
    url: '/api/shop/get_tasklist',
    method: 'POST',
    params: params
  });
}

//获取商品分类
export function getShopCate(params) {
  return requestPort({
    url: '/api/shop/shop_cate',
    method: 'POST',
    params: params
  });
}

//获取商品详情
export function getShopDetail(params) {
  return requestPort({
    url: '/api/shop/shop_detail',
    method: 'POST',
    params: params
  });
}

//提交商品兑换订单
export function addOrder(params) {
  return requestPort({
    url: '/api/shop/userapplyordersubmit',
    method: 'POST',
    params: params
  });
}

//请求积分规则
export function getRule(params) {
  return requestPort({
    url: '/api/shop/shop_rule',
    method: 'POST',
    params: params
  });
}

//请求积分明细
export function getScore(params) {
  return requestPort({
    url: '/api/User/new_getMoneyLog',
    method: 'POST',
    params: params
  });
}

// 签到push通知
export function getSignPush(params) {
  return requestPort({
    url: '/api/shop/sign_remind',
    method: 'POST',
    params: params
  });
}

// 请求商城公告
export function getNotice(params) {
  return requestPort({
    url: '/api/shop/shop_notice',
    method: 'POST',
    params: params
  });
}

//获取充值套餐
export function getComboList(params) {
  return requestPort({
    url: '/api/Recharge/getComboList',
    method: 'POST',
    params: params
  });
}
